<?php
require_once("DbFactory.class.php");
class Vote extends Base
{
    private $_voteId;
    private $_title;
    private $_amount;

    protected function getTableName()
    {
        return "vote";
    }


    protected function getPrimaryKey()
    {
        return "voteId";
        // TODO: Implement getPrimaryKey() method.
    }

    public function setVoteId($voteId)
    {
        $this->_voteId = $voteId;
    }

    public function getVoteId()
    {
        return $this->_voteId;
    }


    public function setTitle($title)
    {
        $this->_title = $title;
    }

    public function getTitle()
    {
        return $this->_title;
    }

    public function setAmount($amount)
    {
        $this->_amount = $amount;
    }

    public function getAmount()
    {
        return $this->_amount;
    }

    protected function competeRecord($post)
    {
        return array("description" => $post['description']);
    }


}

?>